package com.springboot.service.impl;

import com.springboot.service.StudentService;
import com.springboot.test1dao.Test1StudentMapper;
import com.springboot.test2dao.Test2StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author peter
 * @title: StudentServiceImp
 * @projectName springAll-peter
 * @description: TODO
 * @date 19-5-5下午5:29
 */
@Service("studentService")
public class StudentServiceImp implements StudentService {

    @Autowired
    private Test1StudentMapper test1StudentMapper;

    @Autowired
    private Test2StudentMapper test2StudentMapper;


    @Override
    public List<Map<String, Object>> getAllStudentsFromTest1() {
        return test1StudentMapper.getAllStudents();
    }

    @Override
    public List<Map<String, Object>> getAllStudentsFromTest2() {
        return test2StudentMapper.getAllStudents();
    }
}
